package com.handpay.nocardpay.baselibrary.main.home.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lyang on 2017/9/22.
 */

public class PaymentTypeListBean extends BaseResponseBean implements Parcelable {

    /**
     * items : 2
     * list : [{"paymentType":7},{"paymentType":6}]
     */

    private String items;
    private List<ListBean> list;

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * paymentType : 7
         */

        private int paymentType;

        public int getPaymentType() {
            return paymentType;
        }

        public void setPaymentType(int paymentType) {
            this.paymentType = paymentType;
        }
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.items);
        dest.writeList(this.list);
    }

    public PaymentTypeListBean() {
    }

    protected PaymentTypeListBean(Parcel in) {
        super(in);
        this.items = in.readString();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Creator<PaymentTypeListBean> CREATOR = new Creator<PaymentTypeListBean>() {
        @Override
        public PaymentTypeListBean createFromParcel(Parcel source) {
            return new PaymentTypeListBean(source);
        }

        @Override
        public PaymentTypeListBean[] newArray(int size) {
            return new PaymentTypeListBean[size];
        }
    };
}
